package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 检修设备试运行、恢复运行申请单 子表 安全措施
 * @TableName applysheet_dev1
 */
@TableName(value ="applysheet_dev1")
@Data
public class ApplysheetDev1 implements Serializable {
    /**
     * ID
     */
    @TableId
    private String apId;

    /**
     * 申请单编号
     */
    private String apCode;

    /**
     * 申请单类型，0-检修设备试运行，1-检修设备恢复运行
     */
    private String apType;

    /**
     * 序号
     */
    private String apOrder;

    /**
     * 拆除或者恢复的安全措施
     */
    private String safetyMeasure;

    /**
     * 执行情况
     */
    private String apResult;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApplysheetDev1 other = (ApplysheetDev1) that;
        return (this.getApId() == null ? other.getApId() == null : this.getApId().equals(other.getApId()))
            && (this.getApCode() == null ? other.getApCode() == null : this.getApCode().equals(other.getApCode()))
            && (this.getApType() == null ? other.getApType() == null : this.getApType().equals(other.getApType()))
            && (this.getApOrder() == null ? other.getApOrder() == null : this.getApOrder().equals(other.getApOrder()))
            && (this.getSafetyMeasure() == null ? other.getSafetyMeasure() == null : this.getSafetyMeasure().equals(other.getSafetyMeasure()))
            && (this.getApResult() == null ? other.getApResult() == null : this.getApResult().equals(other.getApResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApId() == null) ? 0 : getApId().hashCode());
        result = prime * result + ((getApCode() == null) ? 0 : getApCode().hashCode());
        result = prime * result + ((getApType() == null) ? 0 : getApType().hashCode());
        result = prime * result + ((getApOrder() == null) ? 0 : getApOrder().hashCode());
        result = prime * result + ((getSafetyMeasure() == null) ? 0 : getSafetyMeasure().hashCode());
        result = prime * result + ((getApResult() == null) ? 0 : getApResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", apId=").append(apId);
        sb.append(", apCode=").append(apCode);
        sb.append(", apType=").append(apType);
        sb.append(", apOrder=").append(apOrder);
        sb.append(", safetyMeasure=").append(safetyMeasure);
        sb.append(", apResult=").append(apResult);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}